3.15.38 \(\int \frac {1}{2-b x} \, dx\)

Optimal. Leaf size=12 \[ -\frac {\log (2-b x)}{b} \]

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {31} \begin {gather*} -\frac {\log (2-b x)}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(2 - b*x)^(-1),x]

[Out]

-(Log[2 - b*x]/b)

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin {align*} \int \frac {1}{2-b x} \, dx &=-\frac {\log (2-b x)}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 12, normalized size = 1.00 \begin {gather*} -\frac {\log (2-b x)}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(2 - b*x)^(-1),x]

[Out]

-(Log[2 - b*x]/b)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{2-b x} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(2 - b*x)^(-1),x]

[Out]

IntegrateAlgebraic[(2 - b*x)^(-1), x]

________________________________________________________________________________________

fricas [A]  time = 0.67, size = 11, normalized size = 0.92 \begin {gather*} -\frac {\log \left (b x - 2\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-b*x+2),x, algorithm="fricas")

[Out]

-log(b*x - 2)/b

________________________________________________________________________________________

giac [A]  time = 1.10, size = 12, normalized size = 1.00 \begin {gather*} -\frac {\log \left ({\left | b x - 2 \right |}\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-b*x+2),x, algorithm="giac")

[Out]

-log(abs(b*x - 2))/b

________________________________________________________________________________________

maple [A]  time = 0.00, size = 13, normalized size = 1.08 \begin {gather*} -\frac {\ln \left (-b x +2\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(-b*x+2),x)

[Out]

-ln(-b*x+2)/b

________________________________________________________________________________________

maxima [A]  time = 1.42, size = 11, normalized size = 0.92 \begin {gather*} -\frac {\log \left (b x - 2\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-b*x+2),x, algorithm="maxima")

[Out]

-log(b*x - 2)/b

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 11, normalized size = 0.92 \begin {gather*} -\frac {\ln \left (b\,x-2\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-1/(b*x - 2),x)

[Out]

-log(b*x - 2)/b

________________________________________________________________________________________

sympy [A]  time = 0.07, size = 8, normalized size = 0.67 \begin {gather*} - \frac {\log {\left (b x - 2 \right )}}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-b*x+2),x)

[Out]

-log(b*x - 2)/b

________________________________________________________________________________________